import VueRouter from 'vue-router'

// 导入对应的路由组件

import home from './components/tabbar/home.vue'
import set from './components/tabbar/set.vue'
import shopcar from './components/tabbar/shopcar.vue'
import member from './components/tabbar/member.vue'
// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    {
      path: '/home',
      component: home
    },
    {
      path: '.set',
      component: set
    },
    {
      path: './member',
      component: member
    },
    {
      path: './shopcar',
      component: shopcar
    }
  ],
  linkActiveClass: "mui-active" //高亮显示
})

// 把路由对象暴露出去
export default router